/**
 * @projectDescription functions for start.html
 * MUNS copyright, 2010
 * @author xkx
 */

//dom ready-------------------------------
window.addEvent('domready', function() {
	//Form (now divs)
	var nForm = new QuickForm('new-form',{
			speed:300,
			fx:Fx.Transitions.linear.easeOut 
			});
	// form tabs
	form_tabs = new TinyTab($$('ul._tabs li'),$$('ul._contents')[0].getChildren(),{'selectedClass':'_selected'});

	//time picker
	/*var pick = $('pick'),
	timepicker = new TimePicker(pick, {
			'onHide': function()
			{
			pick.set('value', (this.hour || '00') + ':' + (this.minute || '00'));
			}
			});*/
	//welcome buttons
	var buttons = new Clickables({elements: $$('.block-list li')});
	$("new").addEvent('click',function(){neww.show();});
	//$("open").addEvent('click', function(){});
	//create the new dialog
	var dialog_button_launch = function()
	{
		
	}
	var dialog_button_cancel = function()
	{
		neww.hide();
	}
	neww = new MUN.module.dialog.create("Prepare or Start A New Conference", "neww",{
		'Launch': dialog_button_launch,
		'Cancel': dialog_button_cancel
	});
	var top_menu = new UvumiDropdown("dropdown-menu");
	//version
	$("mun-copyright").innerHTML = MUN.copyrightHTML;
	
});//domready